package com.wanbangee.marksystem.controller;

import java.util.Map;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.wanbangee.marksystem.analysisservice.QueryCurrentExamService;

@CrossOrigin
@RestController
@RequestMapping("/all")
public class QueryCurrentExamController_Feign {

	@Autowired
	private QueryCurrentExamService queryCurrentExamService;
	
	@RequestMapping(value = "/allexams",method = RequestMethod.GET)
	public Map<String, Object> selectCurrentAllExams(@RequestParam("accId")Integer accId){
		return this.queryCurrentExamService.selectCurrentAllExams(accId);
	}
	
	@RequestMapping(value = "/allclasses",method = RequestMethod.GET)
	public Map<String, Object> selectAllClass(@RequestParam("examId")Integer examId){
		return this.queryCurrentExamService.selectAllClass(examId);
	}
	
	@RequestMapping(value = "/allsubjects",method = RequestMethod.GET)
	public Map<String, Object> selectAllSubject(@RequestParam("examId")Integer examId){
		return this.queryCurrentExamService.selectAllSubject(examId);
	}
}
